package com.learn.service.impl;

import com.learn.service.IHelloService;
import org.springframework.stereotype.Service;

@Service
public class HelloServiceImpl implements IHelloService {
    @Override
    public void sayHello() {
        System.out.println("hello");
    }

    @Override
    public void say(String msg) {
        System.out.println(msg);
    }

    @Override
    public void err(boolean isThrow) {
        System.out.println("error begin");
        throw new RuntimeException("sss");
    }
}
